package com.code.day14ApI2.Data;

import java.util.Calendar;
import java.util.Date;

public class Demo01 {
    public static void main(String[] args) {
        Date date = new Date();
        date.setTime(2000L);
        System.out.println(date);

        long time = date.getTime();
        System.out.println("time = " + time);

        Calendar calendar = Calendar.getInstance();
        System.out.println(calendar);
    }

}
